import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'
import Essay from '../components/Essay.vue'
import Makejiemian from  '../components/Makejiemian.vue'
import Sccesemake from '../components/Sccesemake.vue'
import Yuzhi from '../components/Yuzhi.vue'
import Zhfub from '../components/Zhfub.vue'

Vue.use(VueRouter)

  const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home
  },
  // {
  //   path: '/about',
  //   name: 'About',
  //   // route level code-splitting
  //   // this generates a separate chunk (about.[hash].js) for this route
  //   // which is lazy-loaded when the route is visited.
  //   component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
  // }
  {
<<<<<<< HEAD
    path:"/essay",
    name:"Essay",
    component:Essay
  },
  {
   path:"/makejiemian",
   name:"Makejiemian",
   component:Makejiemian 
  },
  {
    path:"/sccesemake",
    name:"Sccesemake",
    component:Sccesemake
  },
  {
    path:"/yuzhi",
    name:"Yuzhi",
    component:Yuzhi
  },
  {
   path:"/zhfub",
   name:"Zhfub",
   component:Zhfub 
=======
    path: '/search',
    name: "Search",
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/Search.vue')
  },
  {
    path: '/cart',
    name: "Cart",
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/Cart.vue')
  },
  {
    path: '/my',
    name: "My",
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/My.vue')
  },
  {
    path: '/data',
    name: "Data",
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/data.vue')
  },
  {
    path: '/mess',
    name: "Mess",
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/Mess.vue')
  },
  {
    path: '/index',
    name: "Index",
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/Index.vue')
>>>>>>> 0772e09347cd8cf29e048644ee9f493c5e777b5e
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
